<template>
  <div class="flex-box">
    <div class="flex-left">
      <div class="flex-header">
        <img src="@/assets/common/icon-flex-1.png" class="icon" alt="" />
        <div class="flex-title">分析结果</div>
      </div>
      <div class="flex-body">
        <div class="button-group">
          <div class="button-item" @click="hooks.useHandlePeakAnalysis">
            峰值分析
          </div>
          <div class="button-item">报告生成</div>
          <div class="button-item">数据导出</div>
        </div>
      </div>
    </div>
    <div class="flex-right">
      <div class="flex-header">
        <img src="@/assets/common/icon-flex-2.png" class="icon" alt="" />
        <div class="flex-title">分析结果</div>
      </div>
      <div class="flex-body">
        <div class="zone-box">
          <div class="zone-content">
            <img class="zone-icon" src="@/assets/common/zone-img-2.png" />
            <div class="zone-text">分析结果显示区域</div>
            <div class="zone-loading">选择分析工具后显示结果</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
import * as hooks from "@/hooks/useTest2Hooks";
</script>
<style lang="less" scoped>
.flex-box {
  display: flex;
  padding: 16px 0;
  justify-content: space-between;
  .flex-left {
    width: 368px;
    height: 553px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e6ebf1;
  }
  .flex-right {
    width: 768px;
    height: 553px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e6ebf1;
  }
}
.flex-header {
  display: flex;
  align-items: center;
  background: #f2f3f5;
  padding: 0 12px;
  height: 42px;
  .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }
  .flex-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 16px;
    color: #262626;
    line-height: 22px;
    text-align: left;
    font-style: normal;
  }
}
.flex-body {
  padding: 16px;
}
.button-group {
  .button-item {
    height: 52px;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e6ebf1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 14px;
    color: #262626;
    line-height: 20px;
    margin-bottom: 12px;
    &:last-child {
      margin-bottom: 0;
    }
  }
}
.zone-box {
  width: 733px;
  height: 461px;
  background: #fbfbfb;
  border-radius: 8px;
  border: 1px dashed #bec4ca;
  display: flex;
  align-items: center;
  justify-content: center;
  .zone-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    .zone-icon {
      width: 72px;
      height: 72px;
    }
    .zone-text {
      padding: 8px 0;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      font-size: 16px;
      color: #262626;
      line-height: 22px;
      text-align: left;
      font-style: normal;
    }
    .zone-loading {
      display: flex;
      align-items: center;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 12px;
      color: #2776ff;
      line-height: 16px;
      text-align: left;
      font-style: normal;
      span {
        margin-left: 5px;
      }
    }
  }
}
</style>
